#include "junix.h"
#include <boost/signal.hpp>

using namespace std;

struct B 
{
	void A() {
		cout<<"hello,junix"<<endl;
	}
};

struct A
{
	A (B* pb) : pb(pb) { }

	void operator() () {
		pb->A();
	}

	B* pb;
};

int main(int argc, char **argv)
{
	B *pb=new B;
	A  a(pb);

	boost::signal<void()> sig;
	sig.connect(a);

	sig();
}
